package com.sign.service.rest;


import com.sign.service.mapper.CityMapper;
import com.sign.service.model.City;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 513422479@qq.com
 * Date on 2022/3/5  20:48
 */
@RestController
public class TestController {


    @Autowired
    private CityMapper cityMapper;

    @GetMapping("/a")
    public String test(){
        City city = cityMapper.selectById(1);
        City city1 = cityMapper.findByName("温岭市");
        System.out.println(city.getCityName());
        System.out.println("aa="+city1.getCityName());
    return "ok";
    }
}
